<div class="row">
    <div class="col-md-12">
        <div class="block">
            <div class="block-title">
                <h2><strong>Listado de administrativos</strong></h2>
            </div>
            <div class="table-responsive">
                <table id="example-datatable" class="table table-vcenter table-condensed table-bordered">
                    <thead>
                        <tr>
                            <th class="text-center">Nro.</th>
                            <th class="text-center">Foto</th>
                            <th>Nombre</th>
                            <th>Ap. Paterno</th>
                            <th>Ap. Materno</th>
                            <th>C.I.</th>
                            <th>Cargo</th>
                            <th>Accion</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $i = 1; ?>
                        <?php foreach ($administrativos as $admi): ?>
                            <tr>
                                <td class="text-center"><?php
                                    echo $i;
                                    $i++;
                                    ?></td>
                                <td class="text-center"><img src="./img/placeholders/avatars/avatar7.jpg" alt="avatar" class="img-circle" /></td>
                               
                                <td><?php echo $admi['User']['nombres']; ?></td>
                                <td><?php echo $admi['User']['ap_paterno']; ?></td>
                                <td><?php echo $admi['User']['ap_materno']; ?></td>
                                <td><?php echo $admi['User']['ci']; ?></td>
                                 <td><?php echo $admi['User']['role'] ?></td>
                               
                                <td class="text-center">
                                    <div class="btn-group">
                                        <a href="<?php echo $this->Html->url(array('controller' => 'Administrativos', 'action' => 'editar', $admi['User']['id'])); ?>"data-toggle="tooltip" title="Editar" class="btn btn-xs btn-default"><i class="fa fa-pencil"></i></a>

                                        <a href="<?php echo $this->Html->url(array('controller' => 'Administrativos', 'action' => 'delete', $admi['User']['id']), array('action' => 'delete', $admi['User']['id']), array('escape' => false)); ?>" data-toggle="tooltip" title="Delete" class="btn btn-xs btn-danger"><i class="fa fa-times"></i></a>
                                     

                                    </div>
                                </td>
                            </tr>
                        <?php endforeach; ?>

                    </tbody>
                </table> 
            </div>
        </div>
    </div>
</div>